/*
Realistic Unit Modification v4.0 Dialog 
v4.0.0.1 [ALPHA]
Concept & Development by Draper & Raps | [VRC]
*/

private ["_which","_param","_man","_pilot","_planecallsign","_paycallsign","_stg1","_stg2","_stg3"];

_which = _this select 0;
_param = _this select 1;

switch (_which) do {
	case "sling": {
		_man = _param select 0;
		_pilot = _param select 1;
		_planecallsign = _param select 2;
		_paycallsign = _param select 3;
		
		_stg1 = RUM_RADIO_AssetProvider + " " + "this is" + " " + RUM_COM_Callsign + ", " + "Requesting a " + _paycallsign + " via sling load from " + _planecallsign + ", " + "DZ with ingress and egress has been logged, over";
		_man sidechat toUpper(_stg1);
		sleep (10 + random 5);
		_stg2 = RUM_COM_Callsign + " " + "this is" + " " + RUM_RADIO_AssetProvider + ", " + "Request granted, stand by for flight, out";
		[side _man,"HQ"] sideChat toUpper(_stg2);
		_stg3 = RUM_COM_Callsign + " " + "this is" + " " + _planecallsign + ", " + "Roger Wilco, out";
		sleep (20 + random 5);
		_pilot sidechat toUpper(_stg3);
	};
	case "para": {
		_man = _param select 0;
		_pilot = _param select 1;
		_planecallsign = _param select 2;
		_paycallsign = _param select 3;
		
		_stg1 = RUM_RADIO_AssetProvider + " " + "this is" + " " + RUM_COM_Callsign + ", " + "Requesting a " + _paycallsign + " via parachute drop from " + _planecallsign + ", " + "DZ with ingress and egress has been logged, over";
		_man sidechat toUpper(_stg1);
		sleep (10 + random 5);
		_stg2 = RUM_COM_Callsign + " " + "this is" + " " + RUM_RADIO_AssetProvider + ", " + "Request granted, stand by for flight, out";
		[side _man,"HQ"] sideChat toUpper(_stg2);
		_stg3 = RUM_COM_Callsign + " " + "this is" + " " + _planecallsign + ", " + "Roger Wilco, out";
		sleep (20 + random 5);
		_pilot sidechat toUpper(_stg3);
	};
};

if (true) exitwith {};